
package JET.physics.engine;

import JET.physics.interfaces.SceneTreeNode;
import JET.physics.steering.Torque;
import java.util.ArrayList;

/**
 *
 * @author 057Ry
 */
public class TorquesTreeNode implements SceneTreeNode {

    ArrayList<Torque> torqueList;

    public TorquesTreeNode(ArrayList<Torque> torqueList) {
        this.torqueList = torqueList;
    }

    public SceneTreeNode getChild(int index) {
        return (SceneTreeNode) torqueList.get(index);
    }

    public int getChildCount() {
        return torqueList.size();
    }

    public boolean isLeaf() {
        return torqueList.isEmpty();
    }

    public int getIndexOfChild(Object child) {
        return torqueList.indexOf(child);
    }

    public void resetNodeValue(Object o) {}

    public String toString() {
        return "Torques";
    }
}
